package com.guanzhi.creation.factory.abstractFactory.product.impl;

import com.guanzhi.creation.factory.abstractFactory.product.GraphicFactory;
import com.guanzhi.creation.factory.abstractFactory.resources.ColorFillerResource;
import com.guanzhi.creation.factory.abstractFactory.resources.ShapeResource;
import com.guanzhi.creation.factory.abstractFactory.resources.impl.CircleColorFillerResourceLoader;
import com.guanzhi.creation.factory.abstractFactory.resources.impl.CircleResourceLoader;

/**
 * 设计模式
 * <p> Package: com.guanzhi.creation.factory.abstractFactory.product </p>
 * <p> File: CircleGraphicFactory.java </p>
 * <p> Description:  (创建型模式-工厂模式-抽象工厂-产品加载-圆形绘制及填充)</p>
 * <p> Date: 2024/4/14 1:20</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/4/14 1:20
 * @since jdk17（jdk版本）
 */
public class CircleGraphicFactory implements GraphicFactory {
    @Override
    public ShapeResource createShape() {
        return new CircleResourceLoader();
    }

    @Override
    public ColorFillerResource createColorFiller() {
        return new CircleColorFillerResourceLoader();
    }
}
